package com.text;

public class anm {
    public String name;
    public int age;

    public anm(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class dog extends anm{
    public dog(String name, int age) {
       super(name,age);
    }
}
class cat extends anm{
    public cat(String name, int age) {
        super(name, age);
    }
}